<style>
    .form-group .required:before{
        content:'* ';
        color:red;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}




    <div class="form-group">
        <label for="c-name1" class="control-label col-xs-12 col-sm-2 required">{:__('Mail smtp host')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name1" data-rule="required" class="form-control" name="row[mail_smtp_host]" type="text" value="{$data.mail_smtp_host ?? ''}" placeholder="" {if $id neq 0} readonly {/if}>

        </div>
    </div>

    <div class="form-group">
        <label for="c-name2" class="control-label col-xs-12 col-sm-2 required">{:__('Mail smtp port')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name2" data-rule="required" class="form-control" name="row[mail_smtp_port]" type="text" value="{$data.mail_smtp_port ?? ''}" placeholder="" {if $id neq 0} readonly {/if}>
            <p style="color: #666666">SSL=>465,TLS=>587</p>
        </div>
    </div>

    <div class="form-group">
        <label for="c-name3" class="control-label col-xs-12 col-sm-2 required">{:__('Mail smtp user')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name3" data-rule="required" class="form-control" name="row[mail_smtp_user]" type="text" value="{$data.mail_smtp_user ?? ''}" placeholder="" {if $id neq 0} readonly {/if}>

        </div>
    </div>

    <div class="form-group">
        <label for="c-name3" class="control-label col-xs-12 col-sm-2 required">{:__('Mail smtp password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name4" data-rule="required" class="form-control" name="row[mail_smtp_pass]" type="text" value="{$data.mail_smtp_pass ?? ''}" placeholder="" {if $id neq 0} readonly {/if}>

        </div>
    </div>



    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2 required" >{:__('Mail from')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="" data-rule="required" class="form-control" name="row[mail_from]" type="text" value="{$data.mail_from ?? ''}" placeholder="" {if $id neq 0} readonly {/if}>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2 required">{:__('Mail vertify type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[mail_verify_type]', ['1'=>__('TLS'), '2'=>__('SSL')],$mail_verify_type)}
        </div>
    </div>

    {if $id eq 0}
    <input type="hidden" value="-1" name="row[status]">
    {else/}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Enable'), '-1'=>__('Disabled')],$status)}
        </div>
    </div>
    {/if}



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[id]" value="{$id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

